<!DOCTYPE html>
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta  charset="utf-8">
<meta  name="viewport"  content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta  name="description"  content="一元夺宝">
<title>一元夺宝</title>
{php echo register_jssdk();}
<link  rel="stylesheet"  href="../addons/feng_duobao/template/css/css.css">
<script  src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js" type="text/javascript"></script>
</head>

<body  style="background:#ea2127;">
<section  class="wrap"  style="padding-bottom:45px; padding-top:0px;">
	<section  class="banner">
		<h1  class="headline">一元夺宝</h1>
		<a  id="oneIndexUser"  href="{php echo $this->createMobileUrl('profile')}"  title="个人中心"  class="user_lg">个人中心</a>
	</section>

	<section  class="slide">
		<div  class="s_top">
			<h2>最新推荐！</h2>
		</div>
		<div  class="slide_box">
			<div  class="slide_wp">
				<ul  class="slide_area">
					{loop $s_pos $gid $pos}
					<li>
						<a  href="{php echo $this->createMobileUrl('details', array('id' => $pos['id']))}"  title="(第{$pos['periods']}期){$pos['title']}"  class="s_img"><img  src="{$_W['attachurl']}{$pos['picarr']}"  alt="(第{$pos['periods']}期){$pos['title']}"></a>
						<p>(第{$pos['periods']}期){$pos['title']}</p>
					</li>
					{/loop}	
				</ul>
			</div>
		</div>
	</section>
  	<section  class="cont">
		<div  class="s_top">
		  <h2>进行中的抽奖！</h2>
		</div>
		<div  id="oneIndexGiftList"  class="prize_list">
			{loop $goodses $goodsid $goods}
			<dl  id="one_1"  name="indexGiftItem"  class="prize"  gid="1"  sno="71">
				<dt  class="pri_img"> 
					<a  href="{php echo $this->createMobileUrl('details', array('id' => $goods['id']))}"  title="(第{$goods['periods']}期){$goods['title']}"><img  src="{$_W['attachurl']}{$goods['picarr']}"  alt="(第{$goods['periods']}期){$goods['title']}"></a>
				</dt>
				<dd  class="pri_info">
					<h3  class="pri_tit"> <a  href="{php echo $this->createMobileUrl('details', array('id' => $goods['id']))}"  title="(第{$goods['periods']}期){$goods['title']}">(第{$goods['periods']}期){$goods['title']}</a></h3>
					<p  class="total">总需：{$goods['zongrenshu']}份</p>
					<div  class="join_num"> 
						<span  class="att_num">已参与：{$goods['canyurenshu']}次</span> <span  class="remain_num">剩余：<span  class="fc">{$goods['shengyurenshu']}</span>次</span>
						<div  class="bar">
							<div  style="width:{$goods['scale']}%;"  class="bar_in"></div>
						</div>
					</div>
					<a  href="{php echo $this->createMobileUrl('details', array('id' => $goods['id']))}"  title="立即兑换"  class="exc_btn">立即兑换</a> 
				</dd>
			</dl>
			{/loop}		
		</div>
  	</section>
</section>

<style type="text/css">
.footer {
	clear: both;
	width: 100%;
	background: none repeat scroll 0% 0% #F7F7F7;
	border-top: 1px solid #DDD;
	height: 48px;
	position: fixed;
	bottom: 0px;
	z-index: 100;
}
* {
    outline: 0px none;
}
ul {
    list-style: outside none none;
}
li,  ul {
    margin: 0px;
    padding: 0px;
}
.footer a {
    width: 33.3%;
    height: 44px;
    padding-top: 3px;
    text-align: center;
    float: left;
    display: block;
    color: #888;
    font-size: 12px;
}
a {
    color: #000;
    text-decoration: none;
}
.footer li.f_personal a.hover i {
    width: 20px;
    height: 22px;
    background-position: 0px -175px;
    position: relative;
    top: 3px;
    margin-bottom: 4px;
}
.footer a i {
    display: block;
    background: url('http://mskin.1yyg.com/weixin/Images/f_set.png?v=140815') repeat scroll 0% 0% / 28px auto transparent;
    margin: 0px auto 1px;
}
address, em, i, cite, s {
    font-style: normal;
}
.footer li.f_whole i {
    width: 23px;
    height: 25px;
    background-position: 0px -78px;
    position: relative;
    top: 1px;
}
.footer li.f_home i {
    width: 27px;
    height: 25px;
    background-position: 0px 0px;
}
</style>
<!-- 底部导航 -->
<div class="footer" style="bottom: 0px;">
    <ul>
        <li class="f_home"><a href="{php echo $this->createMobileUrl('index')}" title="首页"><i></i>首页</a></li>
        <li class="f_whole"><a href="{php echo $this->createMobileUrl('introduction')}" title="规则介绍"><i></i>规则介绍</a></li>
        <li class="f_personal"><a href="{php echo $this->createMobileUrl('profile')}" class="hover" title="个人中心"><i></i>个人中心</a></li>
    </ul>
</div>
</body>      
<script type="text/javascript">
wx.ready(function () {
	var shareData = {
		title: "{$share_data['share_title']}",
		desc: "{$share_data['share_desc']}",
		link: "{$to_url}",
		imgUrl: "{$_W['attachurl']}{$share_data['share_image']}",
	};
//分享朋友
	wx.onMenuShareAppMessage({
	    title: shareData.title,
	  	desc: shareData.desc,
	  	link: shareData.link,
	  	imgUrl:shareData.imgUrl,
	  	trigger: function (res) {
	  	},
	  	success: function (res) {
	    	window.location.href =adurl;
	  	},
	  	cancel: function (res) {
	  	},
	  	fail: function (res) {
	    	alert(JSON.stringify(res));
	  	}
	});
	//朋友圈
	wx.onMenuShareTimeline({
	  	title: shareData.title+"---"+shareData.desc,
	  	link: shareData.link,
	  	imgUrl:shareData.imgUrl,
	  	trigger: function (res) {
	  	},
	  	success: function (res) {
	    	window.location.href =adurl;
	  	},
	  	cancel: function (res) {
	  	},
	  	fail: function (res) {
	    	alert(JSON.stringify(res));
	  	}
	});   

});
</script>
</html>